<% if @parent.nil?
  @parent = Post.find_by_id(session[:parent_post] )
end %>
<% form_for(@post,:url=>{:action=>'create'}) do |p| %>
  <%= p.hidden_field :parent_id, :value => @parent.id  %>
  <%= p.hidden_field :category_id, :value => (@parent.category_id)  %>
  <%= p.error_messages %>
  <h1>Title</h1>
  <%= p.text_field :title, {:value => "Re: " + @parent.title, :class => "textInput"} %>
  <br/>
  <h1>Post</h1>
  <%= p.text_area :body, :class => "textInput" %>
  <br/>
  <span class="new_post_submit"><%= p.submit "Submit", :class => "button" %></span>
<%  end %>